package org.springblade.modules.admin.vo.parts;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.admin.enums.EmerProcTypeEnum;

/**
 * 维修明细记录
 * @author zcc
 * @version 1.0
 * @date 2022/7/4 15:17
 */
@Data
public class MaintainMalfunctionWorkDetailVo {

	@ApiModelProperty("项目名称")
	private String buildingName;

	@ApiModelProperty("电梯地址")
	private String elevatorAddress;

	/**
	 * 紧急程度
	 */
	private Integer emerProcType;

	/**
	 * 紧急程度描述
	 */
	private String emerProcTypeName;

	/**
	 * 电梯状态： 1-正常,2-停梯
	 */
	private Integer elevatorStop;

	public void setEmerProcType(Integer emerProcType) {
		if(Func.isNotEmpty(emerProcType)){
			this.emerProcTypeName = EmerProcTypeEnum.getName(emerProcType);
		}
		this.emerProcType = emerProcType;
	}
}
